{% extends 'base.html' %}

{% block container %}
<div class="top-pad">
    <form method="POST" action="{{ url_for('auth.login') }}" role="form">
{#        使用input方式#}
        <input class="form-control" type="text" name="username" placeholder="请输入账号" required><br>
        <input class="form-control" type="password" name="password" placeholder="请输入密码" required><br>
        <button class="form-control" type="submit" value="登录">登录</button><br>
{#        使用flask表单方式#}
{#        <div class="form-group">{{ form.username.label }}: {{ form.username() }}</div>#}
{#        <div class="form-group">{{ form.password.label }}: {{ form.password() }}</div>#}
{#        <button type="submit" class="btn btn-default">登录</button>#}
    </form>
</div>

{% endblock %}